﻿@model Inovout.Account.Web.Models.ChangePasswordInfo
@{
    Layout = "~/Views/Shared/_SignLayout.cshtml";
    ViewBag.Title = "重置密码";
}
<header class="reg_header">
    <img src="~/Styles/Themes/Google/Images/logo_2x.png" />
    @if (@ViewBag.Membership != null)
    {
        <span>
            <a id="account-link-button">@ViewBag.Membership.Name
            </a>
            <a href='@Url.Action("SignOut", "Account", new { returnUrl = ViewBag.ReturnUrl })'>退出</a>
        </span>
    }
</header>

<div class="w80 modifypwBox">
    <div class="modifypwTitle">
        <h1>重置您的密码</h1>
    </div>
    <div class="modifypwContent w60">
        <div class="wgt">
            <div class="w30 describe">
                <div>
                    输入 <strong>@ViewBag.Email</strong> 的新密码。强烈建议您设置一个未在其他网站中使用过的密码
                </div>
                <div>
                    请注意：如果您更改了密码，就无法再使用原来的密码！
                </div>

            </div>
            <div class="w26">
                <div class="wgt">
                    <div class="formInput">
                      @*  @using (Html.BeginForm("ChangePassword", "FormsUser", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/"), userCredentialId = ViewBag.UserCredentialId }))
                        { *@
                        
                          @using (Html.BeginForm("ChangePassword", "FormsUser", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/"), email = ViewBag.Email }))
                          {
                              <input type="hidden" name="email" value="@ViewBag.Email" />
                         
                            @Html.ValidationSummary(true)      
                                  @Html.HiddenFor(m => m.UserName)
                          
                            <div class="reg_field">
                                @Html.LabelFor(model => model.Password, "密码", new { @class = "w-1" })
                                @Html.EncryptPasswordFor(model => model.Password, new Dictionary<string, object>() { {"maxlength","20"} })
                                @Html.ValidationMessageFor(model => model.Password)

                            </div>
                            <div class="reg_field">
                                @Html.LabelFor(model => model.ConfirmPassword, "确认密码", new { @class = "w-1" })
                                @Html.PasswordFor(model => model.ConfirmPassword, new { maxlength = 20 })
                                @Html.ValidationMessageFor(model => model.ConfirmPassword)
                            </div>
                            <div class="reg_finish w-1">
                                <span>@Html.Submit("重置密码", 10)</span>
                            </div>
                        }
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
